import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
import { DateConverter } from '@farris/kendo-binding';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdbh_90eff549_ehbd',
            name: "{{jmhdbh_90eff549_ehbd}}",
            binding: 'jmhdbh',
            updateOn: 'blur',
            defaultI18nValue: '活动编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "jmhdbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdmc_4df6c9d3_zg16',
            name: "{{jmhdmc_4df6c9d3_zg16}}",
            binding: 'jmhdmc',
            updateOn: 'blur',
            defaultI18nValue: '活动名称',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "jmhdmc", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdrq_2996d4bf_4wuy',
            name: "{{jmhdrq_2996d4bf_4wuy}}",
            binding: 'jmhdrq',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '活动日期',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "jmhdrq", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdlx_a00f63b7_yduu',
            name: "{{jmhdlx_a00f63b7_yduu}}",
            binding: 'jmhdlx',
            updateOn: 'blur',
            defaultI18nValue: '活动类型',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "jmhdlx", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'bz_10112502_16r1',
            name: "{{bz_10112502_16r1}}",
            binding: 'bz',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "bz", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'hdys_b38409ed_gk6v',
            name: "{{hdys_b38409ed_gk6v}}",
            binding: 'hdys',
            updateOn: 'blur',
            defaultI18nValue: '活动预算',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "hdys", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'hdfzr_8dac49e3_wsoc',
            name: "{{hdfzr_8dac49e3_wsoc}}",
            binding: 'hdfzr',
            updateOn: 'blur',
            defaultI18nValue: '活动负责人',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "hdfzr", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '加盟推广',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
